﻿<cfsilent>
	<cfscript>
		
		menuArgs = structNew();
		
		structInsert(menuArgs, "QSN", event.getArg("QSN"), true);
		
		classStep01 = classStep02 = classStep03 = "";
		classStep04 = "lastStep";
		
		if ( event.getRequestName() eq "voteSetupWizard" or event.getRequestName() eq "voteSetupWizardQuotaCreate" or event.getRequestName() eq "voteSetupWizardQuotaEdit" ) {
			classStep01 = listAppend(classStep01, "current", " ");
		}
		
		if ( event.getRequestName() eq "voteSetupWizardConfirm" ) {
			classStep01 = listAppend(classStep01, "lastDone", " ");
			classStep02 = listAppend(classStep02, "current", " ");
		}
		
		if ( event.getRequestName() eq "voteSetupWizardPreview" ) {
			classStep01 = listAppend(classStep01, "done", " ");
			classStep02 = listAppend(classStep02, "lastDone", " ");
			classStep03 = listAppend(classStep03, "current", " ");
		}
		
		if ( event.getRequestName() eq "voteSetupWizardPublish" ) {
			classStep01 = listAppend(classStep01, "done", " ");
			classStep02 = listAppend(classStep02, "done", " ");
			classStep03 = listAppend(classStep03, "lastDone", " ");
			classStep04 = listAppend(classStep04, "current", " ");
		}
		
	</cfscript>
</cfsilent>

<div class="UIWizard clearfix">
	<ul class="fourStep stepNavigation">

		<li class="<cfoutput>#classStep01#</cfoutput>"><a <cfif listFind(classStep01, "current", " ") or listFind(classStep02, "current", " ") or listFind(classStep03, "current", " ") or listFind(classStep04, "current", " ") >href="<cfoutput>#buildURL('voteSetupWizard', menuArgs)#</cfoutput>"</cfif>><em>题目组织</em><span>设置调查问卷的各题目和选项</span></a></li>
		<li class="<cfoutput>#classStep02#</cfoutput>"><a <cfif listFind(classStep02, "current", " ") or listFind(classStep03, "current", " ") or listFind(classStep04, "current", " ") >href="<cfoutput>#buildURL('voteSetupWizardConfirm', menuArgs)#</cfoutput>"</cfif>><em>时间和范围</em><span>确认问卷执行时间和参与人</span></a></li>
		<li class="<cfoutput>#classStep03#</cfoutput>"><a <cfif listFind(classStep03, "current", " ") or listFind(classStep04, "current", " ")>href="<cfoutput>#buildURL('voteSetupWizardPreview', menuArgs)#</cfoutput>"</cfif>><em>问卷预览</em><span>查看向学生发布的问卷</span></a></li>
		<li class="<cfoutput>#classStep04#</cfoutput>"><a <cfif listFind(classStep04, "current", " ") >href="<cfoutput>#buildURL('voteSetupWizardPublish', menuArgs)#</cfoutput>"</cfif>><em>发布</em><span>正式对外发布调查问卷</span></a></li>
	
	</ul>
</div>